package com.example.natatorium_management.result.appexception;


import com.example.natatorium_management.result.restful.ResponseEunm;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class AppException extends RuntimeException {
    private String code;
    private String massage;
    public AppException(ResponseEunm responseEunm){
        this.code = responseEunm.getCode();
        this.massage = responseEunm.getMessage();
    }
}
